
public class SaveWidget extends UIDockWidget {


	/**
	 * 
	 */
		
	private final rgbEditor rgbEditor;
	//public boolean locked;

		public SaveWidget(rgbEditor rgbEditor, float w, float h, UIDock p){
			super(rgbEditor, w,h,"Save File",p);
			this.rgbEditor = rgbEditor;
			normalIcon = this.rgbEditor.loadImage("save.png");
			hoverIcon = normalIcon;
			selectedIcon = this.rgbEditor.loadImage("save.png");
			selectedIcon.filter(rgbEditor.INVERT);
			selectedIcon.filter(rgbEditor.THRESHOLD);
			//locked = false;
		}

		public SaveWidget(rgbEditor rgbEditor, UIDock p){
			this(rgbEditor, p.dockWidth,p.dockWidth,p);
			//locked = false;
		}

		public void onSelect(){
			//this.rgbEditor.toolType = this.rgbEditor.TOOL_MAG;
			//selectMe();
			//mode = this.rgbEditor.SELECTED;
			//FIXME:
			//locked = true;
			rgbEditor.chooseSaveFile();
			//rgbEditor.lastPressed = false;
			return;
		}

}
